import {get,post} from './request'

const HttpManager = {

    // =======================> 管理员 API 完成
    // 是否登录成功
    getLoginStatus: ({username, password}) => post(`admin/login/status`, {username, password}),

    // =======================> 用户 API 完成
    // 返回所有用户
    getAllUser: () => get(`user/allUser`),
    // 返回指定ID的用户
    getUserOfId: (id) => get(`user/userdetail?id=${id}`),
    contentOfUserId: (userId) => get(`content/detail?userId=${userId}`)
}

export {HttpManager}
